/*--------------------------------------------------------------
	#home style 3
--------------------------------------------------------------*/
/*--------------------------------------------------------------
#3.1	features-section-s2
--------------------------------------------------------------*/
.features-section-s2 {
	margin: 100px 0 0;

	@include media-query(991px) {
		margin: 90px 0 0;
	}

	.feature-grids .grid {
		background-color: $white;
		width: 33.33%;
		float: left;
		padding: 35px 25px 35px 100px;
		position: relative;
		box-shadow: 0px 9px 42.32px 3.68px rgba(25, 38, 62, 0.16);

		@include media-query(991px) {
			background-color: $white;
			padding: 35px 25px;
			text-align: center;
			box-shadow: 0px 5px 47.2px 11.8px rgba(19, 30, 74, 0.1);
		}

		@include media-query(767px) {
			width: 100%;
			float: left;
		}
	}

	.feature-grids > .grid + .grid {
		border-left: 1px solid transparentize($white, 0.8);
	}

	.feature-grids > .grid:nth-child(2) {
		background-color: $theme-primary-color;

		h4 { 
			color: $white;
		}

		.fi:before {
			color: $white;
		}
	}

	.fi:before {
		font-size: 50px;
		font-size: calc-rem-value(50);
		color: $theme-primary-color;
	}

	.icon {
		position: absolute;
		left: 35px;

		@include media-query(991px) {
			position: relative;
			left: auto;
		}
	}

	.count {
		font-family: $heading-font;
		font-size: 30px;
		font-size: calc-rem-value(30);
		font-weight: bold;
		color: $heading-color;

		@include media-query(991px) {
			color: $heading-color;
		}
	}

	h4 {
		font-size: 18px;
		font-size: calc-rem-value(18);
		color: $heading-color;
		margin: 0;

		@include media-query(991px) {
			font-size: 16px;
			font-size: calc-rem-value(16);
			color: $heading-color;
			margin: 0.7em 0 0;
		}
	}
}


/*--------------------------------------------------------------
#3.2	testimonials-section-s2
--------------------------------------------------------------*/
.testimonials-section-s2 {
	background-color: #f0fbff;
	padding-bottom: 40px;
	position: relative;

	&:before {
		@include background-style("../images/testimonials-bg.png", left bottom, cover, no-repeat, local);
		content: "";
		width: 100%;
		height: 100%;
		position: absolute;
		left: 0;
		top: 0;
	}


	@include media-query(991px) {
		padding-bottom: 30px;
	}

	@include media-query(767px) {
		padding-bottom: 10px;
	}

	.testimonial-grids {
		margin: 40px -15px 0;

		.grid {
			width: calc(50% - 30px);
			float: left;
			margin: 0 15px 70px;

			@include media-query(991px) {
				width: calc(50% - 30px);
			}

			@include media-query(600px) {
				width: calc(100% - 30px);
				float: none;
			}
		}
	}

	.quote {
		background: $white;
		padding: 45px;
		position: relative;
		border-radius: 5px;

		@include media-query(767px) {
			padding: 30px 25px;
		}

		p {
			font-style: italic;
		}

		&:before {
			content: "";
		    border-right: 30px solid transparent;
		    border-top: 20px solid $white;
		    position: absolute;
		    left: 35px;
		    bottom: -20px;
		}
	}

	.client-info {
		margin-top: 35px;
		position: relative;
		padding-left: 75px;

		.img-holder {
			position: absolute;
			left: 0;
			top: 0;

			img {
				border-radius: 50%;
			}
		}

		h5 {
			font-size: 16px;
			font-size: calc-rem-value(16);
			margin: 0 0 0.3em;
			padding: 0.8em 0 0;

			@include media-query(767px) {
				font-size: 14px;
				font-size: calc-rem-value(14);
			}
		}

		p {
			font-size: 12px;
			font-size: calc-rem-value(12);
			margin: 0;
			line-height: 1.7em;
		}
	}
}
